package router

import (
	"api-gateway/handler/api"
	"api-gateway/handler/middleware"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {

	r.POST("/upload", middleware.VideoUploadSafeMiddleware(), api.Upload)
	r.POST("/upload/v1", api.UploadV1)
	r.GET("/video/list", api.VideoList)
	r.POST("/notify/pay", api.NotifyPay)

}
